﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebInfo.aspx.cs" Inherits="Manageweb_Manage_WebInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
<link href="../images/css.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;高级网站基本信息管理<asp:Label ID="LB_ID" runat="server" Visible="False"></asp:Label></td>
            </tr>
        </table>
        <br />
        <table border="1" cellpadding="0" cellspacing="0" width="750" id="TABLE_Add_Mod" runat="server">
            <tr>
                <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;<asp:Label ID="LB_TableTitle" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="width:150px;">
                    &nbsp;标题</td>
                <td style="text-align: left">
                    &nbsp;<asp:TextBox ID="TB_Title" runat="server"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                        ID="RFV_TB_Title" runat="server" ControlToValidate="TB_Title" Display="Dynamic"
                        ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    &nbsp;内容</td>
                <td style="text-align: left">
                    &nbsp;<asp:TextBox ID="TB_Content" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RFV_TB_Content" runat="server" ControlToValidate="TB_Content"
                        Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1;">
                    <asp:Button ID="Btn_Submit" runat="server" Text="提交" ValidationGroup="Btn_Submit" />&nbsp;<asp:Button ID="Btn_Cancel"
                        runat="server" Text="取消" /></td>
            </tr>
        </table>
        <br />
        <asp:Label ID="LB_WebInfo" runat="server" Font-Bold="True" Font-Size="Small"
            ForeColor="Red"></asp:Label><br />
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td>
                    <asp:GridView ID="GV_WebInfoList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        DataKeyNames="WI_ID" DataSourceID="ODS_WebInfoList" ForeColor="#333333" Width="100%">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="WI_ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                SortExpression="WI_ID" />
                            <asp:BoundField DataField="WI_Title" HeaderText="标题" SortExpression="WI_Title">
                                <ItemStyle HorizontalAlign="Left" CssClass="padleft10px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="详细内容" SortExpression="WI_Content">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("WI_Content") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# ContentSubStr(Eval("WI_Content")) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="padleft10px" HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="WI_State" HeaderText="状态" SortExpression="WI_State" Visible="False" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="Btn_Add" runat="server" CommandArgument='<%# Eval("WI_ID") %>' OnCommand="Btn_Add_Command"
                                        Text="添加" />
                                    <asp:Button ID="Btn_Mod" runat="server" CommandArgument='<%# Eval("WI_ID") %>' OnCommand="Btn_Mod_Command"
                                        Text="修改" />
                                    <asp:Button ID="Btn_Del" runat="server" CommandArgument='<%# Eval("WI_ID") %>' OnCommand="Btn_Del_Command"
                                        Text="删除" OnClientClick="return confirm('删除操作不可恢复，是否继续？')" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="WI_DateTime" HeaderText="创建时间" SortExpression="WI_DateTime" />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:ObjectDataSource ID="ODS_WebInfoList" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="GetDataMain" TypeName="AccessDAL.WebInfoTableAdapters.WebInfoTableAdapter">
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
